package com.sxf.dao;

import java.util.List;
import java.util.Map;

import com.sxf.domain.Comment;
import com.sxf.domain.CommentMeta;
import com.sxf.domain.CommentVO;
import com.sxf.mybatis.page.Pagination;
import com.sxf.querybean.CommentQuery;

public interface CommentDAO {
	public Pagination<CommentVO> queryPage(CommentQuery query);

	public List<CommentVO> queryList(CommentQuery query);

	public long queryNumber(CommentQuery query);

	public CommentVO queryOne(CommentQuery query);

	public Map<String, Integer> queryStatistic();

	public int insert(Comment info);

	public int update(Comment info);

	public int delete(Comment info);

	/**
	 * 返回主键或影响的行数
	 * 
	 * @param CommentMeta
	 * @return
	 */
	public long insertCommentMeta(CommentMeta info);

	public int updateCommentMeta(CommentMeta info);

	public int deleteCommentMeta(CommentMeta info);
}
